/** *通用形列表-分页部分 */
<template>
    <el-pagination
        v-if="paginationObj.paginationisShow"
        v-model:current-page="paginationObj.paginationCurrentPage"
        :page-count="paginationObj.paginationPageCount"
        :pager-count="paginationObj.paginationPagerCount"
        v-model:page-size="paginationObj.paginationPageSize"
        :page-sizes="paginationObj.paginationPageSizes"
        :size="paginationObj.paginationSize"
        :disabled="paginationObj.paginationDisabled"
        :background="paginationObj.paginationBackground"
        :layout="paginationObj.paginationLayout"
        :total="paginationObj.paginationTotal"
        :hide-on-single-page="paginationObj.paginationHideOnSinglePage"
        :default-current-page="paginationObj.paginationDefaultCurrentPage"
        class="pagination"
        @size-change="paginationObj.paginationSizeChange"
        @current-change="paginationObj.paginationCurrentChange"
    >
        <template #default>
            <div>{{ paginationObj.paginationSlotText }}</div>
        </template>
    </el-pagination>
</template>

<script lang="ts" setup>
    import { ref, reactive, markRaw, onBeforeMount, onMounted, onBeforeUnmount, nextTick, computed, watch } from 'vue';
    import type { Ref, Raw } from 'vue';
    import {} from '@/apis';
    import { isPhone } from '@/utils';

    import { useRoute, useRouter } from 'vue-router';
    import { storeToRefs } from 'pinia';
    import { useStore } from '@/store';
    import { ElMessage } from 'element-plus';
    import { Lock, User, Monitor, Phone, Search, RefreshRight, CaretTop, CaretBottom } from '@element-plus/icons-vue';
    const route = useRoute();
    const router = useRouter();
    const store = useStore();

    const paginationObj = defineModel<any>('paginationObj', {
        required: false,
        default: {},
    });
    const emits = defineEmits<{
        // (e: 'update:isCollapse', data: boolean): void,
        // 'tableSearch': [data: any]
    }>();
</script>

<style lang="scss" scoped>
    .pagination {
        padding-top: 10px;
    }
</style>
